package model

import "time"

type Notice struct {
	Id       uint      `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	Title    string    `gorm:"column:title;type:varchar(30);comment:标题;not null;" json:"title"`      // 标题
	Content  string    `gorm:"column:content;type:varchar(255);comment:内容;not null;" json:"content"` // 内容
	CratedAt time.Time `gorm:"column:crated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"crated_at"`
}

func (n *Notice) TableName() string {
	return "notice"
}
